package com.smooth.site.sx.mag.basedata.category.enums;

public enum CategoryType {
	company(1, "企业"),
	school(2, "学校"),
	goods(3, "商品"),
	;

	public Integer value;
	public String name;

	CategoryType(int value, String name) {
		this.value = value;
		this.name = name;
	}

	public static CategoryType getStatus(Integer value) {
		if (value != null) {
			CategoryType[] otypes = CategoryType.values();
			for (CategoryType memberType : otypes) {
				if (value.equals(memberType.value)) {
					return memberType;
				}
			}
		}
		return null;
	}
}
